package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;


/**
 * @Author: WangHongKun
 * @Date: 2022/9/22 16:58
 * @Email: 2028911483@qq.com
 * @Phone: 18683977706
 */

@Mapper
public interface UserMapper {
    @Select("select  * from  user  where  openid =#{openid}")
    User getByOpenId(String  openid);

    @Select("select * from  user where  id =#{id}")
    User  getById(Long id);

    void Insert(User user);

    Integer getNewUser(LocalDateTime begin,LocalDateTime end);

    Integer getTotalUser(LocalDateTime end);
}
